Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate other memory leaks #1484

Closed
wants to merge 2 commits into from

Conversation

ankur22
Copy link
Collaborator

@ankur22 ankur22 commented Oct 14, 2024

What?

This PR is investigating one thing which is nilling references to break connections so that the GC will collect unused memory/objects.

Why?

To prevent and reduce memory usage/leaks.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

@ankur22 ankur22 changed the base branch from main to fix/io-readall-recvloop October 14, 2024 10:10
@ankur22 ankur22 marked this pull request as draft October 14, 2024 10:10
@ankur22 ankur22 force-pushed the fix/io-readall-recvloop branch from 184556f to c791237 Compare October 14, 2024 14:15
@ankur22 ankur22 force-pushed the investigate/memory-leaks branch from 3786c8f to 2a14612 Compare October 14, 2024 14:15
@ankur22 ankur22 force-pushed the fix/io-readall-recvloop branch from c791237 to a631b38 Compare October 14, 2024 14:16
@ankur22 ankur22 force-pushed the investigate/memory-leaks branch from 2a14612 to 1c80112 Compare October 14, 2024 14:18
We need to ensure that the reference from request to response and back
to request is broken by nilling them out. This then allows the GC to
correctly collect the objects and free memory.
@ankur22 ankur22 force-pushed the investigate/memory-leaks branch from 1c80112 to ec4ebe0 Compare October 14, 2024 14:19
This is a POC to understand why memory isn't being deallocated normally
without having to do this.
@ankur22 ankur22 force-pushed the investigate/memory-leaks branch from 8a5dee5 to 658063a Compare October 14, 2024 18:51
@ankur22
Copy link
Collaborator Author

ankur22 commented Oct 16, 2024

Closing this in favour of the actual solution to the problem #1488

@ankur22 ankur22 closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant